package com.carol.lmsbe.entity;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.time.LocalDateTime;

/**
 * 易耗品计划实体类
 */
@Data
@TableName("consumable_plan")
public class ConsumablePlan {

    @TableId(type = IdType.AUTO)
    private Long id;

    @TableField("semester")
    private String semester;

    @TableField("laboratory_id")
    private Long laboratoryId;

    @TableField("applicant_id")
    private Long applicantId;

    @TableField("total_budget")
    private Double totalBudget;

    @TableField("status")
    private String status; // DRAFT-草稿, SUBMITTED-已提交, APPROVED-已批准, REJECTED-已拒绝

    @TableField("approver_id")
    private Long approverId;

    @TableField("approval_time")
    private LocalDateTime approvalTime;

    @TableField("approval_comment")
    private String approvalComment;

    @TableField("plan_type")
    private String planType;

    @TableField("budget_source")
    private String budgetSource;

    @TableField("remark")
    private String remark;

    @TableField(value = "create_time", fill = FieldFill.INSERT)
    private LocalDateTime createTime;

    @TableField(value = "update_time", fill = FieldFill.INSERT_UPDATE)
    private LocalDateTime updateTime;
}
